package com.zbl.javaDemo;

/**
 * 匿名内部接口，简单处理多策略
 */
public class 匿名内部接口 {
    public static void main(String[] args) {
        haveShow(() -> System.out.println("Hello World!"));
    }

    private static void haveShow(InterfaceDemo interfaceDemo) {
        interfaceDemo.show();
    }

    interface InterfaceDemo {
        public void show();
    }
}
